<div>
	<form action="/index/index/postdetail" method="post">
		id: <input name="id" value="{$id}" /> <input type="submit" value="搜索">
	</form> 
	<table border="1" style="border-collapse: collapse"  >
		<tr>
			<th>title</th>
			<th>content</th>
			<th>create_time</th>
			<th>操作</th>
		</tr>
		{volist name='list' id='post'}
		<tr>
				<input type='hidden' name='id' value={$post.id}>
				<td><input type='text' name='title' id='title-{$post.id}' value={$post.title}></td>
				<td><input type='text' name='content' id='content-{$post.id}' value={$post.content}></td>
				<td>{$post.create_time}</td>
				<td><input type='button' onclick='postEdit(this)' data-id="{$post.id}"  value='修改信息'>
					<input type='button' onclick="postDelete(this)" data-id="{$post.id}" data-pid="{$post.pid}" value="删除操作"></td>
		</tr>
		{/volist}
		
    </table>
	<input type="hidden" name='id' id='id' value='{$id}' /> <input
		type='text' name='content' id='relaycontent' value='回帖内容' /><input
		type='button' onclick="postreply()" value='回帖' />
</div>


<script src="/js/postdetail.js"></script>
{$page}
<div id='reply' ></div>

